package org.ws.task.model.protocol;


import org.ws.task.model.TaskItem;

import java.io.Serializable;
import java.util.List;

public class CommitRequest implements Serializable {

    public CommitRequest(){}

    public CommitRequest(String taskName, List<TaskItem> items,String nodeId) {
        this.taskName = taskName;
        this.items = items;
        this.nodeId = nodeId;
    }

    private String taskName;
    private List<TaskItem> items;
    private String nodeId;

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public List<TaskItem> getItems() {
        return items;
    }

    public void setItems(List<TaskItem> items) {
        this.items = items;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }
}
